/*
package NiuKe;

import java.util.Scanner;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/17/10:07
 *//*

public class HJ61 {
    public static int hzh(int apple,int plate){
        if(apple == 0||plate==1){
            return 1;
        }
        else if(apple<plate){
            return hzh(apple,apple);
        }else{ //苹果数 > 盘子数 （空盘，不空盘）
            return hzh(apple,plate-1)+hzh(apple-plate,plate);
        }
    }
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int apple = scanner.nextInt();
        int plate = scanner.nextInt();
        int res = hzh(apple, plate);
        System.out.println(res);
    }
}
*/
